if3(true, x, y) -> x
if3(false, x, y) -> y
eq2(0, 0) -> true
eq2(0, s1(x)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
app2(nil, l) -> l
app2(cons2(x, l1), l2) -> cons2(x, app2(l1, l2))
app2(app2(l1, l2), l3) -> app2(l1, app2(l2, l3))
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(true, x, l) -> true
ifmem3(false, x, l) -> mem2(x, l)
inter2(x, nil) -> nil
inter2(nil, x) -> nil
inter2(app2(l1, l2), l3) -> app2(inter2(l1, l3), inter2(l2, l3))
inter2(l1, app2(l2, l3)) -> app2(inter2(l1, l2), inter2(l1, l3))
inter2(cons2(x, l1), l2) -> ifinter4(mem2(x, l2), x, l1, l2)
inter2(l1, cons2(x, l2)) -> ifinter4(mem2(x, l1), x, l2, l1)
ifinter4(true, x, l1, l2) -> cons2(x, inter2(l1, l2))
ifinter4(false, x, l1, l2) -> inter2(l1, l2)
↳ QTRS
↳ DependencyPairsProof
if3(true, x, y) -> x
if3(false, x, y) -> y
eq2(0, 0) -> true
eq2(0, s1(x)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
app2(nil, l) -> l
app2(cons2(x, l1), l2) -> cons2(x, app2(l1, l2))
app2(app2(l1, l2), l3) -> app2(l1, app2(l2, l3))
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(true, x, l) -> true
ifmem3(false, x, l) -> mem2(x, l)
inter2(x, nil) -> nil
inter2(nil, x) -> nil
inter2(app2(l1, l2), l3) -> app2(inter2(l1, l3), inter2(l2, l3))
inter2(l1, app2(l2, l3)) -> app2(inter2(l1, l2), inter2(l1, l3))
inter2(cons2(x, l1), l2) -> ifinter4(mem2(x, l2), x, l1, l2)
inter2(l1, cons2(x, l2)) -> ifinter4(mem2(x, l1), x, l2, l1)
ifinter4(true, x, l1, l2) -> cons2(x, inter2(l1, l2))
ifinter4(false, x, l1, l2) -> inter2(l1, l2)
APP2(app2(l1, l2), l3) -> APP2(l2, l3)
MEM2(x, cons2(y, l)) -> EQ2(x, y)
IFINTER4(true, x, l1, l2) -> INTER2(l1, l2)
INTER2(app2(l1, l2), l3) -> INTER2(l2, l3)
INTER2(app2(l1, l2), l3) -> INTER2(l1, l3)
INTER2(l1, cons2(x, l2)) -> MEM2(x, l1)
MEM2(x, cons2(y, l)) -> IFMEM3(eq2(x, y), x, l)
INTER2(l1, app2(l2, l3)) -> APP2(inter2(l1, l2), inter2(l1, l3))
IFMEM3(false, x, l) -> MEM2(x, l)
INTER2(l1, cons2(x, l2)) -> IFINTER4(mem2(x, l1), x, l2, l1)
EQ2(s1(x), s1(y)) -> EQ2(x, y)
INTER2(l1, app2(l2, l3)) -> INTER2(l1, l3)
INTER2(cons2(x, l1), l2) -> IFINTER4(mem2(x, l2), x, l1, l2)
INTER2(l1, app2(l2, l3)) -> INTER2(l1, l2)
INTER2(app2(l1, l2), l3) -> APP2(inter2(l1, l3), inter2(l2, l3))
INTER2(cons2(x, l1), l2) -> MEM2(x, l2)
APP2(app2(l1, l2), l3) -> APP2(l1, app2(l2, l3))
IFINTER4(false, x, l1, l2) -> INTER2(l1, l2)
APP2(cons2(x, l1), l2) -> APP2(l1, l2)
if3(true, x, y) -> x
if3(false, x, y) -> y
eq2(0, 0) -> true
eq2(0, s1(x)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
app2(nil, l) -> l
app2(cons2(x, l1), l2) -> cons2(x, app2(l1, l2))
app2(app2(l1, l2), l3) -> app2(l1, app2(l2, l3))
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(true, x, l) -> true
ifmem3(false, x, l) -> mem2(x, l)
inter2(x, nil) -> nil
inter2(nil, x) -> nil
inter2(app2(l1, l2), l3) -> app2(inter2(l1, l3), inter2(l2, l3))
inter2(l1, app2(l2, l3)) -> app2(inter2(l1, l2), inter2(l1, l3))
inter2(cons2(x, l1), l2) -> ifinter4(mem2(x, l2), x, l1, l2)
inter2(l1, cons2(x, l2)) -> ifinter4(mem2(x, l1), x, l2, l1)
ifinter4(true, x, l1, l2) -> cons2(x, inter2(l1, l2))
ifinter4(false, x, l1, l2) -> inter2(l1, l2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
APP2(app2(l1, l2), l3) -> APP2(l2, l3)
MEM2(x, cons2(y, l)) -> EQ2(x, y)
IFINTER4(true, x, l1, l2) -> INTER2(l1, l2)
INTER2(app2(l1, l2), l3) -> INTER2(l2, l3)
INTER2(app2(l1, l2), l3) -> INTER2(l1, l3)
INTER2(l1, cons2(x, l2)) -> MEM2(x, l1)
MEM2(x, cons2(y, l)) -> IFMEM3(eq2(x, y), x, l)
INTER2(l1, app2(l2, l3)) -> APP2(inter2(l1, l2), inter2(l1, l3))
IFMEM3(false, x, l) -> MEM2(x, l)
INTER2(l1, cons2(x, l2)) -> IFINTER4(mem2(x, l1), x, l2, l1)
EQ2(s1(x), s1(y)) -> EQ2(x, y)
INTER2(l1, app2(l2, l3)) -> INTER2(l1, l3)
INTER2(cons2(x, l1), l2) -> IFINTER4(mem2(x, l2), x, l1, l2)
INTER2(l1, app2(l2, l3)) -> INTER2(l1, l2)
INTER2(app2(l1, l2), l3) -> APP2(inter2(l1, l3), inter2(l2, l3))
INTER2(cons2(x, l1), l2) -> MEM2(x, l2)
APP2(app2(l1, l2), l3) -> APP2(l1, app2(l2, l3))
IFINTER4(false, x, l1, l2) -> INTER2(l1, l2)
APP2(cons2(x, l1), l2) -> APP2(l1, l2)
if3(true, x, y) -> x
if3(false, x, y) -> y
eq2(0, 0) -> true
eq2(0, s1(x)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
app2(nil, l) -> l
app2(cons2(x, l1), l2) -> cons2(x, app2(l1, l2))
app2(app2(l1, l2), l3) -> app2(l1, app2(l2, l3))
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(true, x, l) -> true
ifmem3(false, x, l) -> mem2(x, l)
inter2(x, nil) -> nil
inter2(nil, x) -> nil
inter2(app2(l1, l2), l3) -> app2(inter2(l1, l3), inter2(l2, l3))
inter2(l1, app2(l2, l3)) -> app2(inter2(l1, l2), inter2(l1, l3))
inter2(cons2(x, l1), l2) -> ifinter4(mem2(x, l2), x, l1, l2)
inter2(l1, cons2(x, l2)) -> ifinter4(mem2(x, l1), x, l2, l1)
ifinter4(true, x, l1, l2) -> cons2(x, inter2(l1, l2))
ifinter4(false, x, l1, l2) -> inter2(l1, l2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ QDP
↳ QDP
APP2(app2(l1, l2), l3) -> APP2(l2, l3)
APP2(app2(l1, l2), l3) -> APP2(l1, app2(l2, l3))
APP2(cons2(x, l1), l2) -> APP2(l1, l2)
if3(true, x, y) -> x
if3(false, x, y) -> y
eq2(0, 0) -> true
eq2(0, s1(x)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
app2(nil, l) -> l
app2(cons2(x, l1), l2) -> cons2(x, app2(l1, l2))
app2(app2(l1, l2), l3) -> app2(l1, app2(l2, l3))
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(true, x, l) -> true
ifmem3(false, x, l) -> mem2(x, l)
inter2(x, nil) -> nil
inter2(nil, x) -> nil
inter2(app2(l1, l2), l3) -> app2(inter2(l1, l3), inter2(l2, l3))
inter2(l1, app2(l2, l3)) -> app2(inter2(l1, l2), inter2(l1, l3))
inter2(cons2(x, l1), l2) -> ifinter4(mem2(x, l2), x, l1, l2)
inter2(l1, cons2(x, l2)) -> ifinter4(mem2(x, l1), x, l2, l1)
ifinter4(true, x, l1, l2) -> cons2(x, inter2(l1, l2))
ifinter4(false, x, l1, l2) -> inter2(l1, l2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
APP2(app2(l1, l2), l3) -> APP2(l2, l3)
APP2(app2(l1, l2), l3) -> APP2(l1, app2(l2, l3))
APP2(cons2(x, l1), l2) -> APP2(l1, l2)
POL( APP2(x1, x2) ) = max{0, 2x1 - 1}
POL( nil ) = 0
POL( cons2(x1, x2) ) = 2x2 + 2
POL( app2(x1, x2) ) = 2x1 + 2x2 + 3
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ PisEmptyProof
↳ QDP
↳ QDP
↳ QDP
if3(true, x, y) -> x
if3(false, x, y) -> y
eq2(0, 0) -> true
eq2(0, s1(x)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
app2(nil, l) -> l
app2(cons2(x, l1), l2) -> cons2(x, app2(l1, l2))
app2(app2(l1, l2), l3) -> app2(l1, app2(l2, l3))
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(true, x, l) -> true
ifmem3(false, x, l) -> mem2(x, l)
inter2(x, nil) -> nil
inter2(nil, x) -> nil
inter2(app2(l1, l2), l3) -> app2(inter2(l1, l3), inter2(l2, l3))
inter2(l1, app2(l2, l3)) -> app2(inter2(l1, l2), inter2(l1, l3))
inter2(cons2(x, l1), l2) -> ifinter4(mem2(x, l2), x, l1, l2)
inter2(l1, cons2(x, l2)) -> ifinter4(mem2(x, l1), x, l2, l1)
ifinter4(true, x, l1, l2) -> cons2(x, inter2(l1, l2))
ifinter4(false, x, l1, l2) -> inter2(l1, l2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ QDP
EQ2(s1(x), s1(y)) -> EQ2(x, y)
if3(true, x, y) -> x
if3(false, x, y) -> y
eq2(0, 0) -> true
eq2(0, s1(x)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
app2(nil, l) -> l
app2(cons2(x, l1), l2) -> cons2(x, app2(l1, l2))
app2(app2(l1, l2), l3) -> app2(l1, app2(l2, l3))
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(true, x, l) -> true
ifmem3(false, x, l) -> mem2(x, l)
inter2(x, nil) -> nil
inter2(nil, x) -> nil
inter2(app2(l1, l2), l3) -> app2(inter2(l1, l3), inter2(l2, l3))
inter2(l1, app2(l2, l3)) -> app2(inter2(l1, l2), inter2(l1, l3))
inter2(cons2(x, l1), l2) -> ifinter4(mem2(x, l2), x, l1, l2)
inter2(l1, cons2(x, l2)) -> ifinter4(mem2(x, l1), x, l2, l1)
ifinter4(true, x, l1, l2) -> cons2(x, inter2(l1, l2))
ifinter4(false, x, l1, l2) -> inter2(l1, l2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
EQ2(s1(x), s1(y)) -> EQ2(x, y)
POL( s1(x1) ) = x1 + 3
POL( EQ2(x1, x2) ) = 3x2 + 3
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ PisEmptyProof
↳ QDP
↳ QDP
if3(true, x, y) -> x
if3(false, x, y) -> y
eq2(0, 0) -> true
eq2(0, s1(x)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
app2(nil, l) -> l
app2(cons2(x, l1), l2) -> cons2(x, app2(l1, l2))
app2(app2(l1, l2), l3) -> app2(l1, app2(l2, l3))
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(true, x, l) -> true
ifmem3(false, x, l) -> mem2(x, l)
inter2(x, nil) -> nil
inter2(nil, x) -> nil
inter2(app2(l1, l2), l3) -> app2(inter2(l1, l3), inter2(l2, l3))
inter2(l1, app2(l2, l3)) -> app2(inter2(l1, l2), inter2(l1, l3))
inter2(cons2(x, l1), l2) -> ifinter4(mem2(x, l2), x, l1, l2)
inter2(l1, cons2(x, l2)) -> ifinter4(mem2(x, l1), x, l2, l1)
ifinter4(true, x, l1, l2) -> cons2(x, inter2(l1, l2))
ifinter4(false, x, l1, l2) -> inter2(l1, l2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
MEM2(x, cons2(y, l)) -> IFMEM3(eq2(x, y), x, l)
IFMEM3(false, x, l) -> MEM2(x, l)
if3(true, x, y) -> x
if3(false, x, y) -> y
eq2(0, 0) -> true
eq2(0, s1(x)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
app2(nil, l) -> l
app2(cons2(x, l1), l2) -> cons2(x, app2(l1, l2))
app2(app2(l1, l2), l3) -> app2(l1, app2(l2, l3))
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(true, x, l) -> true
ifmem3(false, x, l) -> mem2(x, l)
inter2(x, nil) -> nil
inter2(nil, x) -> nil
inter2(app2(l1, l2), l3) -> app2(inter2(l1, l3), inter2(l2, l3))
inter2(l1, app2(l2, l3)) -> app2(inter2(l1, l2), inter2(l1, l3))
inter2(cons2(x, l1), l2) -> ifinter4(mem2(x, l2), x, l1, l2)
inter2(l1, cons2(x, l2)) -> ifinter4(mem2(x, l1), x, l2, l1)
ifinter4(true, x, l1, l2) -> cons2(x, inter2(l1, l2))
ifinter4(false, x, l1, l2) -> inter2(l1, l2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
MEM2(x, cons2(y, l)) -> IFMEM3(eq2(x, y), x, l)
Used ordering: Polynomial Order [17,21] with Interpretation:
IFMEM3(false, x, l) -> MEM2(x, l)
POL( true ) = max{0, -1}
POL( false ) = 1
POL( IFMEM3(x1, ..., x3) ) = x3 + 1
POL( eq2(x1, x2) ) = max{0, -3}
POL( 0 ) = 1
POL( s1(x1) ) = max{0, 3x1 - 3}
POL( MEM2(x1, x2) ) = x2 + 1
POL( cons2(x1, x2) ) = x1 + 2x2 + 3
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
IFMEM3(false, x, l) -> MEM2(x, l)
if3(true, x, y) -> x
if3(false, x, y) -> y
eq2(0, 0) -> true
eq2(0, s1(x)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
app2(nil, l) -> l
app2(cons2(x, l1), l2) -> cons2(x, app2(l1, l2))
app2(app2(l1, l2), l3) -> app2(l1, app2(l2, l3))
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(true, x, l) -> true
ifmem3(false, x, l) -> mem2(x, l)
inter2(x, nil) -> nil
inter2(nil, x) -> nil
inter2(app2(l1, l2), l3) -> app2(inter2(l1, l3), inter2(l2, l3))
inter2(l1, app2(l2, l3)) -> app2(inter2(l1, l2), inter2(l1, l3))
inter2(cons2(x, l1), l2) -> ifinter4(mem2(x, l2), x, l1, l2)
inter2(l1, cons2(x, l2)) -> ifinter4(mem2(x, l1), x, l2, l1)
ifinter4(true, x, l1, l2) -> cons2(x, inter2(l1, l2))
ifinter4(false, x, l1, l2) -> inter2(l1, l2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
INTER2(l1, cons2(x, l2)) -> IFINTER4(mem2(x, l1), x, l2, l1)
INTER2(l1, app2(l2, l3)) -> INTER2(l1, l3)
INTER2(cons2(x, l1), l2) -> IFINTER4(mem2(x, l2), x, l1, l2)
INTER2(l1, app2(l2, l3)) -> INTER2(l1, l2)
IFINTER4(true, x, l1, l2) -> INTER2(l1, l2)
INTER2(app2(l1, l2), l3) -> INTER2(l2, l3)
INTER2(app2(l1, l2), l3) -> INTER2(l1, l3)
IFINTER4(false, x, l1, l2) -> INTER2(l1, l2)
if3(true, x, y) -> x
if3(false, x, y) -> y
eq2(0, 0) -> true
eq2(0, s1(x)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
app2(nil, l) -> l
app2(cons2(x, l1), l2) -> cons2(x, app2(l1, l2))
app2(app2(l1, l2), l3) -> app2(l1, app2(l2, l3))
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(true, x, l) -> true
ifmem3(false, x, l) -> mem2(x, l)
inter2(x, nil) -> nil
inter2(nil, x) -> nil
inter2(app2(l1, l2), l3) -> app2(inter2(l1, l3), inter2(l2, l3))
inter2(l1, app2(l2, l3)) -> app2(inter2(l1, l2), inter2(l1, l3))
inter2(cons2(x, l1), l2) -> ifinter4(mem2(x, l2), x, l1, l2)
inter2(l1, cons2(x, l2)) -> ifinter4(mem2(x, l1), x, l2, l1)
ifinter4(true, x, l1, l2) -> cons2(x, inter2(l1, l2))
ifinter4(false, x, l1, l2) -> inter2(l1, l2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
INTER2(l1, cons2(x, l2)) -> IFINTER4(mem2(x, l1), x, l2, l1)
INTER2(l1, app2(l2, l3)) -> INTER2(l1, l3)
INTER2(cons2(x, l1), l2) -> IFINTER4(mem2(x, l2), x, l1, l2)
INTER2(l1, app2(l2, l3)) -> INTER2(l1, l2)
IFINTER4(true, x, l1, l2) -> INTER2(l1, l2)
INTER2(app2(l1, l2), l3) -> INTER2(l2, l3)
INTER2(app2(l1, l2), l3) -> INTER2(l1, l3)
IFINTER4(false, x, l1, l2) -> INTER2(l1, l2)
POL( true ) = 1
POL( false ) = 0
POL( app2(x1, x2) ) = 3x1 + 3x2 + 3
POL( ifmem3(x1, ..., x3) ) = max{0, x2 + 3x3 - 2}
POL( eq2(x1, x2) ) = max{0, x1 + 2x2 - 2}
POL( 0 ) = 1
POL( s1(x1) ) = max{0, x1 - 3}
POL( IFINTER4(x1, ..., x4) ) = 3x2 + 3x3 + 2x4 + 2
POL( mem2(x1, x2) ) = max{0, 2x1 - 3}
POL( nil ) = 2
POL( cons2(x1, x2) ) = 2x1 + 2x2 + 3
POL( INTER2(x1, x2) ) = max{0, 2x1 + 2x2 - 1}
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ PisEmptyProof
if3(true, x, y) -> x
if3(false, x, y) -> y
eq2(0, 0) -> true
eq2(0, s1(x)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
app2(nil, l) -> l
app2(cons2(x, l1), l2) -> cons2(x, app2(l1, l2))
app2(app2(l1, l2), l3) -> app2(l1, app2(l2, l3))
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(true, x, l) -> true
ifmem3(false, x, l) -> mem2(x, l)
inter2(x, nil) -> nil
inter2(nil, x) -> nil
inter2(app2(l1, l2), l3) -> app2(inter2(l1, l3), inter2(l2, l3))
inter2(l1, app2(l2, l3)) -> app2(inter2(l1, l2), inter2(l1, l3))
inter2(cons2(x, l1), l2) -> ifinter4(mem2(x, l2), x, l1, l2)
inter2(l1, cons2(x, l2)) -> ifinter4(mem2(x, l1), x, l2, l1)
ifinter4(true, x, l1, l2) -> cons2(x, inter2(l1, l2))
ifinter4(false, x, l1, l2) -> inter2(l1, l2)